<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>首页</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script src="../js/jquery-1.11.0.min.js"></script>
	<script type="text/javascript" src="../js/auto_insurance.js" ></script>
		<link rel="stylesheet" href="../css/reset.css">
		<link rel="stylesheet" href="../css/auto_insurance.css">
  </head>
  <body id="all">
	<header class="policy_details_head"><a href="#"></a>首页</header>
	<div class="index_head"><img src="../images/img_index_head.jpg"/></div>
	<form id="id_form" action="${ctx}/testaaaa" method="post" >
	<ul class="index_list">
			<li><em>车牌号码</em><input id="carIp" name="" type="text" placeholder="沪123543"/><a href="no_card.html">新车未上牌？</a></li>
			<li><em>车主姓名</em><input id="cname" name="car_user_name" type="text" placeholder="请输入车主姓名"/></li>
			<li><em>手机号</em><input id="phone" name="car_user_phone" type="text" placeholder="请输入手机号"/></li>
			<li style="visibility:hidden"><em>车主姓名</em><input id="carqq" name="car_qq" type="text" value="1111"/></li>		
	</ul>
	</form>
	<a href="#" class="policy_details_btn" id="asubmit">确定</a>
  </body>
  
<script type="text/javascript">
$(document).ready(function(){
	$("#asubmit").click(function(){
		var x=document.getElementById("carIp").value;
		var hanzi=x.substr(0, 1);
		if(/^[\u4e00-\u9fa5]+$/.test(hanzi)){
			var zimu=x.substr(1, 2);
			if(/^[\u4e00-\u9fa5]+$/.test(zimu)){
				alert("对不起输入错误请重新输入");
			}else{
				$("#id_form").submit();
			}
		}else{
			alert("对不起输入错误请重新输入");
		}
	})
})
</script>
</html>
